package com.CGFrame.struts.bean;



public class ProjectOperateFactory {
	private static final ThreadLocal<ProjectOperate> threadLocal = new ThreadLocal<ProjectOperate>();
	public static ProjectOperate getprojectOperate()
	{
		ProjectOperate pop = (ProjectOperate)threadLocal.get();
		if ( pop==null )
		{
			pop = new ProjectOperate();
		}
		threadLocal.set(pop);
		return pop;
	}
	
	public static void closeprojectOperate()
	{
		ProjectOperate pop = (ProjectOperate)threadLocal.get();
		threadLocal.set(null);
		if (pop!=null)
		{
			pop.close();			
		}
	}
}
